home *** CD-ROM | disk | FTP | other *** search
- Path: grimsel.zurich.ibm.com!usenet
- From: Keith Whittingham <wgk@zurich.ibm.com>
- Newsgroups: comp.lang.c,comp.lang.c++
- Subject: Re: sizeof() question >>> :)
- Date: Fri, 12 Apr 1996 10:34:12 -0700
- Organization: IBM Zurich Research Laboratory
- Message-ID: <316E9414.28AE@zurich.ibm.com>
- References: <1996Apr12.061927@topaz>
- NNTP-Posting-Host: pine.zurich.ibm.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.01 (Win16; I)
- CC: naderr@topaz.cqu.edu.au
-
- naderr@topaz.cqu.edu.au wrote:
- >
- > Hi,
- >
- > How can I get, with a pointer, the sizeof of an array that is
- > pointed by the pointer ? (No it's not a tounge twister :)
- > You can't, but since you're posting this to a C++ forum what you
- can do is write an array class, pass a reference to the array
- instance and ask that how many elements it contains but I
- don't think you wanted that answer.
-
- --
- Keith Whittingham
- wgk@zurich.ibm.com
-